package com.zimmur.model.goods;

/**
* <p>Title: WishListParam</p>
* <p>Description:愿望清单分页查询 </p>
* <p>Company: zimmur</p>
* <p>Copyright: Copyright (c) 2017</p>
* @author huangsx
* @version 1.0
* @time 2018年1月14日 下午3:45:18
 */
public class WishListParam {
	private long userId;//用户id
	private Integer pageIndex;//页码
	private Integer pageSize;//每页记录数
	private String orderByClause;//排序值
	private Integer pageBeginNo;
	public Integer getPageBeginNo() {
		if(pageIndex!=null && pageIndex>0){
			return (pageIndex-1)*pageSize;
		}else{
			return 0;
		}
	}
	public void setPageBeginNo(Integer pageBeginNo) {
		this.pageBeginNo = pageBeginNo;
	}
	public Integer getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public String getOrderByClause() {
		return orderByClause;
	}
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
}
